package com.v8dn.app.controller;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @title 主控制器
 * @author lhf
 * @date 2012-11-10 上午2:22:18
 * @description
 */
@Controller
public class MainController{

	private static Log log=LogFactory.getLog(MainController.class);
	
	/**
	 * @title 跳转到首页页面
	 * @return
	 */
	@RequestMapping(value="/index")
	public String home(){
		log.debug("MainController::home::跳转到首页页面");
		return "index";
	}
	
	/**
	 * @title 跳转到系统管理员页面
	 * @return
	 */
	@RequestMapping(value="/admin")
	public String admin(){
		log.debug("MainController::admin::跳转到系统管理员页面");
		return "admin";
	}
}
